#include<iostream>
using namespace std;
int main(){
    int in[15];
    for(int i=0;i<10;i++){
        cin>>in[i];
    }
    cout<<in[9]<<" "<<in[8]<<" "<<in[7]<<" "<<in[6]<<" "<<in[5]<<" "<<in[4]<<" "<<in[3]<<" "<<in[2]<<" "<<in[1]<<" "<<in[0]<<endl;
    return 0;
}
